#include "../AssemblyBuilder.h"

namespace ECS
{
	void AsemblyBuilder::init( Assembly* assembly )
	{
		for (auto it = _components.begin(); it != _components.end(); ++it)
		{
			IComponentFactory* factory = *it;
			Component* component = factory->create();
			assembly->addComponent(component);
		}
	}
}